<%@ page language="java" pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%> 
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
 
<html> 
	<head>
		<title>IdeaPad - Register</title>
		<link rel="stylesheet" type="text/css" href="../styles/main.css">
		<link rel="stylesheet" type="text/css" href="../styles/buttons.css">
		<link rel="stylesheet" type="text/css" href="../styles/currentbutton.css">
	</head>
	<body>
	<div class="header">
		<html:link action="/default"><img src="/IdeaPad/images/ideapad_logo.png" alt="logo" border="0"/></html:link>
		<html:link page="/form/login.jsp" styleClass="menubuttons">Login</html:link>
		<html:link page="/form/registerUser.jsp" styleClass="menubuttons">Register</html:link>
	</div>
	<table>
		<html:form action="/registerUser">
			<tr><td>*First Name:</td><td>	<html:text property="firstName"></html:text></td></tr>
			<tr><td>*Last Name:</td><td>	<html:text property="lastName"></html:text></td></tr>
			<tr><td>*Username:</td><td>	<html:text property="username"></html:text></td></tr>
			<tr><td>*Password:</td><td>	<html:password property="password"></html:password></td></tr>
			<tr><td>*Confirm Password:</td><td>	<html:password property="password2"></html:password></td></tr>
			<tr><td>*Email Address:</td><td>		<html:text property="emailAddress"></html:text></td></tr>
			<tr><td>Phone Number:</td><td>		<html:text property="phoneNumber"></html:text></td></tr>
			<tr><td>Gender:				
						Male	<html:radio property="gender" value="Male"></html:radio>
						Female	<html:radio property="gender" value="Female"></html:radio></td></tr>
			<tr><td>Location:</td><td>		<html:text property="location"></html:text></td></tr>
			<tr>
			<td>
			<html:submit value="Register" />
			<html:submit value="Cancel" onclick="this.form.action='default.do'"/>
			</td>
			</tr>
		<br></html:form>
		</table>
	</body>
</html>

